#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>    
#include <stddef.h>    

//struct foo {
//	char a;
//	char b[10];
//	char c;
//};
//
//#define OFFSETOF(type,content) (int)&(((type*)0)->content)
//
//int main()
//{
//	printf("offsetof(struct foo,a) is %d\n", OFFSETOF(struct foo, a));
//	printf("offsetof(struct foo,b) is %d\n", OFFSETOF(struct foo, b));
//	printf("offsetof(struct foo,c) is %d\n", OFFSETOF(struct foo, c));
//	return 0;
//}

//#include <stdio.h>    
//#include <stddef.h>    
//
//struct foo {
//	char a;
//	char b[10];
//	char c;
//};
//
//int main()
//{
//	struct foo S = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
//	S.a = 0;
//	S.b[1] = 7;
//	S.c = 0;
//	printf("%d\n", *((S.b)+0));
//	printf("offsetof(struct foo,b) is %d\n", (int)offsetof(struct foo, b[0]));
//	printf("offsetof(struct foo,b) is %d\n", (int)offsetof(struct foo, b));
//	return 0;
//}

enum Color
{
	RED,
	GREEN,
	BLUE
};

int main()
{
	enum Color c = GREEN;
	printf("%d\n", c);
}